\hypertarget{old_2inc_2functions_8php}{
\section{\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/old/inc/functions.php \-File \-Reference}
\label{old_2inc_2functions_8php}\index{\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/old/inc/functions.\-php@{\-C\-:/\-Users/\-Jon/\-Downloads/\-O\-O\-P/old/inc/functions.\-php}}
}
\subsection*{\-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{old_2inc_2functions_8php_aca07cf60afd49a5a5b583459f5423045}{connect\-To\-Database} ()
\item 
\hyperlink{old_2inc_2functions_8php_a670611c688faf5381e11ce55cb7dc889}{show\-Categories} (\$name)
\item 
\hyperlink{old_2inc_2functions_8php_ac1b9b6235dfdcf4b5e61f181ae2827d6}{filter\-Date} ()
\item 
\hyperlink{old_2inc_2functions_8php_aa8f7fe1db6603648ae2628aaf571ecc0}{filter\-Paid} ()
\item 
\hyperlink{old_2inc_2functions_8php_acc3aaf7747487320597223e9b51fc7b4}{view\-Company} (\$\-I\-D)
\item 
\hyperlink{old_2inc_2functions_8php_a70dc3371559a476fc50529b9854e289c}{filter\-Location} (\$city)
\item 
\hyperlink{old_2inc_2functions_8php_a273a92a70827a0af04a320d529d15e52}{filter\-Company} ()
\item 
\hyperlink{old_2inc_2functions_8php_a61006d44ae8ce17e621047df954d5ab5}{sanitize\-Str} (\$str)
\item 
\hyperlink{old_2inc_2functions_8php_ac2f59bd4faf01600f3d667f745c06367}{restore\-Str} (\$str)
\end{DoxyCompactItemize}


\subsection{\-Function \-Documentation}
\hypertarget{old_2inc_2functions_8php_aca07cf60afd49a5a5b583459f5423045}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!connect\-To\-Database@{connect\-To\-Database}}
\index{connect\-To\-Database@{connect\-To\-Database}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{connect\-To\-Database}]{\setlength{\rightskip}{0pt plus 5cm}connect\-To\-Database (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_aca07cf60afd49a5a5b583459f5423045}
\-Connects to the \-My\-S\-Q\-L database 
\begin{DoxyParams}{\-Parameters}
{\em null} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
null 
\end{DoxyReturn}


\-Definition at line 8 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_a273a92a70827a0af04a320d529d15e52}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!filter\-Company@{filter\-Company}}
\index{filter\-Company@{filter\-Company}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{filter\-Company}]{\setlength{\rightskip}{0pt plus 5cm}filter\-Company (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_a273a92a70827a0af04a320d529d15e52}
\-Filters the list by company, sorts by alphabetical order 
\begin{DoxyParams}{\-Parameters}
{\em null} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
null 
\end{DoxyReturn}


\-Definition at line 229 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_ac1b9b6235dfdcf4b5e61f181ae2827d6}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!filter\-Date@{filter\-Date}}
\index{filter\-Date@{filter\-Date}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{filter\-Date}]{\setlength{\rightskip}{0pt plus 5cm}filter\-Date (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_ac1b9b6235dfdcf4b5e61f181ae2827d6}
\-Sorts the list by date added 
\begin{DoxyParams}{\-Parameters}
{\em null} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
null 
\end{DoxyReturn}


\-Definition at line 50 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_a70dc3371559a476fc50529b9854e289c}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!filter\-Location@{filter\-Location}}
\index{filter\-Location@{filter\-Location}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{filter\-Location}]{\setlength{\rightskip}{0pt plus 5cm}filter\-Location (
\begin{DoxyParamCaption}
\item[{\$}]{city}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_a70dc3371559a476fc50529b9854e289c}
\-Filters the list by location, sorting by alphabetical order 
\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$city} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
null 
\end{DoxyReturn}


\-Definition at line 165 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_aa8f7fe1db6603648ae2628aaf571ecc0}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!filter\-Paid@{filter\-Paid}}
\index{filter\-Paid@{filter\-Paid}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{filter\-Paid}]{\setlength{\rightskip}{0pt plus 5cm}filter\-Paid (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_aa8f7fe1db6603648ae2628aaf571ecc0}
\-Sorts internships by paid or unpaid 
\begin{DoxyParams}{\-Parameters}
{\em null} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
null 
\end{DoxyReturn}


\-Definition at line 90 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_ac2f59bd4faf01600f3d667f745c06367}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!restore\-Str@{restore\-Str}}
\index{restore\-Str@{restore\-Str}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{restore\-Str}]{\setlength{\rightskip}{0pt plus 5cm}restore\-Str (
\begin{DoxyParamCaption}
\item[{\$}]{str}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_ac2f59bd4faf01600f3d667f745c06367}
\-Removes slashes from a string 
\begin{DoxyParams}[1]{\-Parameters}
string & {\em \$str} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
string \$str 
\end{DoxyReturn}


\-Definition at line 277 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_a61006d44ae8ce17e621047df954d5ab5}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!sanitize\-Str@{sanitize\-Str}}
\index{sanitize\-Str@{sanitize\-Str}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{sanitize\-Str}]{\setlength{\rightskip}{0pt plus 5cm}sanitize\-Str (
\begin{DoxyParamCaption}
\item[{\$}]{str}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_a61006d44ae8ce17e621047df954d5ab5}
\-Addes slashes to a string, and gets rid of \-H\-T\-M\-L entities 
\begin{DoxyParams}[1]{\-Parameters}
string & {\em \$str} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
string \$str 
\end{DoxyReturn}


\-Definition at line 266 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_a670611c688faf5381e11ce55cb7dc889}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!show\-Categories@{show\-Categories}}
\index{show\-Categories@{show\-Categories}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{show\-Categories}]{\setlength{\rightskip}{0pt plus 5cm}show\-Categories (
\begin{DoxyParamCaption}
\item[{\$}]{name}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_a670611c688faf5381e11ce55cb7dc889}
\-Displays a select box for categories 
\begin{DoxyParams}[1]{\-Parameters}
string & {\em \$name} & \\
\hline
\end{DoxyParams}


\-Definition at line 20 of file functions.\-php.

\hypertarget{old_2inc_2functions_8php_acc3aaf7747487320597223e9b51fc7b4}{
\index{old/inc/functions.\-php@{old/inc/functions.\-php}!view\-Company@{view\-Company}}
\index{view\-Company@{view\-Company}!old/inc/functions.php@{old/inc/functions.\-php}}
\subsubsection[{view\-Company}]{\setlength{\rightskip}{0pt plus 5cm}view\-Company (
\begin{DoxyParamCaption}
\item[{\$}]{\-I\-D}
\end{DoxyParamCaption}
)}}
\label{old_2inc_2functions_8php_acc3aaf7747487320597223e9b51fc7b4}
\-Views a company when the user click on an appropriate button 
\begin{DoxyParams}[1]{\-Parameters}
int & {\em \$\-I\-D} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
null 
\end{DoxyReturn}


\-Definition at line 130 of file functions.\-php.

